Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use redis parse_url method instead of a custom one #234

Merged
merged 3 commits into from
Oct 12, 2023

Conversation

wind-shift
Copy link
Contributor

The custom method defined here has no real advantage

  • the redis lib implements it better and have support for many use cases
  • maintaining this implementation is error-prone and unnecessary work for overworked open-source contributors :)

Especially, when you want to pass query parameters here, they are not supported (for eg a custom certificate authority)

The custom method defined here has no real advantage

- the redis lib implements it better and have support for many use cases
- maintaining this implementation is error-prone and unnecessary work for overworked open-source contributors :)

Especially, when you want to pass query parameters here, they are not supported (for eg a custom certificate authority)
@kencochrane
Copy link
Collaborator

@dkr-sahar thanks for the PR, if you can get the tests to pass I’ll accept and merge.

@wind-shift
Copy link
Contributor Author

Thanks for your sheer rapidity, I will try to achieve this goal in the best possible way @kencochrane

I have spotted another issue for which I shall submit another PR afterwhile.

@codecov
Copy link

codecov bot commented Oct 12, 2023

Codecov Report

Merging #234 (f7ea5b6) into master (f6c73e0) will decrease coverage by 0.16%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master     #234      +/-   ##
==========================================
- Coverage   92.93%   92.78%   -0.16%     
==========================================
  Files          13       13              
  Lines         439      416      -23     
==========================================
- Hits          408      386      -22     
+ Misses         31       30       -1     
Files Coverage Δ
defender/connection.py 100.00% <ø> (+3.22%) ⬆️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@wind-shift
Copy link
Contributor Author

It seems to have worked 👍

@wind-shift
Copy link
Contributor Author

I was expecting the commits to be squashed automatically, but let me know if you want me to rewrite the history.

@kencochrane
Copy link
Collaborator

Thank you, I can squash as it merges.

@kencochrane kencochrane merged commit ba548fa into jazzband:master Oct 12, 2023
17 checks passed
@wind-shift wind-shift deleted the patch-1 branch October 13, 2023 14:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants